package com.zxcl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxcl.domain.Prod;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 描述: []
 * 作者: zxcl
 */
@Mapper
public interface ProdMapper extends BaseMapper<Prod> {
    List<Prod> selectMyPage(@Param("offset") int offset, @Param("size") int size, @Param("t") Date t1);
    /**
     * 修改总库存
     *
     * @param prodId
     * @param count
     * @return
     */
    int updateTotalStock(@Param("prodId") Long prodId, @Param("count") Integer count);
}
